package com.example.basic.demos.mapper;

import com.example.basic.demos.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserMapper {

    //    @Select("select * from users")
    List<User> getAll();

    User getOne(@Param("id") Integer id);

    Integer insertUser(User user);

    Integer updateUser();

    Integer deleteUser();


}
